package com.talos.ums.controller.admin.userorganization.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 用户组织关系表新增/修改 Request VO")
@Data
public class UmsUserOrganizationSaveReqVO {

    @Schema(description = "用户-组织机构-中间表主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "7813")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31237")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "组织机构ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15742")
    @NotNull(message = "组织机构ID不能为空")
    private Long organizationId;

    @Schema(description = "用户账号")
    private String userCode;

    @Schema(description = "组织编码")
    private String organizationCode;

    @Schema(description = "")
    private String allParentsCode;

}
